<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<script src="webjars/jquery/3.1.1/jquery.min.js"></script>
<script src="<%=basePath%>js/index.js"></script>
<body>
<h2>Jquery Test</h2>
<button>Jquery Test</button>

<button id="btnLogin">Login</button>
</body>
</html>
